﻿(function(E, T, $){
var selection = E.mod('Selection'),
	testName = 'Video',
	title = '插入视频',
	setValue = '<span id="_testVideo"></span>',
	dom = null,
	node = null,
	cmds = [
		[1500, {fun: function() {
			dom = E.get('document');
			dom.body.innerHTML = setValue;
			node = dom.getElementById('_testVideo');
			selection.selectNode(node, false);
		}}],
		[500, {name: '#demo-Video', type: 'mouseover'}],
		[500, {name: '#demo-Video a.Video', type: 'click'}],
		[500, {name: '#panel_Video input[name=panel-submit]', type: 'click'}],
		[500, {fun: function() {
			$('#panel_Video input[name=url_name]').val('http://static.video.qq.com/TencentPlayer.swf');
			$('#panel_Video input[name=width_name]').val(300);
			$('#panel_Video input[name=height_name]').val(200);
		}}],
		[500, {name: '#panel_Video input[name=panel-submit]', type: 'click'}]
	];

T.addTest(testName, cmds, title);
})(jQEditor,AutoTest, jQuery)